package org.jeecg.modules.sms.util;

import com.alibaba.fastjson.JSONObject;
import org.jsoup.Connection;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.IOException;

/**
 * 华唐短信平台测试类
 */

public class SmsSendTestUtil {

    public static void main(String[] args) throws IOException {

        String url= "http://cqhuatang.com/SMSServer/smssend";
        JSONObject parms = new JSONObject();
        parms.put("appkey","566982");
        parms.put("appsecret","Y5ljw0");
        parms.put("phone","18580429458");
        parms.put("extnum","112233");
        parms.put("templateid","1640574760071uHi");
        String arr[] = {"张建"};
        parms.put("templateparams",arr);

        String parm = JSONObject.toJSONString(parms);
        System.err.println(parm);
//        Connection.Response post = HttpUtils.post(url, parm);
        String s = HttpRequest.sendPost(url, parm);
        System.out.println(s);
    }




}
